#ifndef CHESSDETECTIONWINDOW_H
#define CHESSDETECTIONWINDOW_H

#include <QWidget>
#include <QLabel>
#include <QTextEdit>
#include <QPushButton>
#include <QVBoxLayout>
#include "chessdetector.h"

class ChessDetectionWindow : public QWidget
{
    Q_OBJECT
public:
    explicit ChessDetectionWindow(QWidget *parent = nullptr);

public slots:
    void startDetection();
    void updateImage(const QImage &image);
    void updateDetectionInfo(const QString &info);


private:
    ChessDetector *chessDetector;
    QLabel *imageLabel;
    QTextEdit *infoText;
    QPushButton *startButton;
};

#endif // CHESSDETECTIONWINDOW_H
